package com.ruoyi.system.domain;

import javax.validation.constraints.*;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 服务配置对象 credit_service_config
 * 
 * @author ruoyi
 * @date 2025-01-28
 */
public class CreditServiceConfig extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 配置ID */
    private Long configId;

    /** 服务代码 */
    @Excel(name = "服务代码")
    private String serviceCode;

    /** 服务名称 */
    @Excel(name = "服务名称")
    private String serviceName;

    /** 所需信用分 */
    @Excel(name = "所需信用分")
    private Integer requiredScore;

    /** 服务描述 */
    @Excel(name = "服务描述")
    private String serviceDesc;

    /** 指导图片（JSON格式） */
    @Excel(name = "指导图片")
    private String guideImages;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    public void setConfigId(Long configId) 
    {
        this.configId = configId;
    }

    public Long getConfigId() 
    {
        return configId;
    }

    public void setServiceCode(String serviceCode) 
    {
        this.serviceCode = serviceCode;
    }

    @NotBlank(message = "服务代码不能为空")
    @Size(max = 50, message = "服务代码长度不能超过50个字符")
    public String getServiceCode() 
    {
        return serviceCode;
    }

    public void setServiceName(String serviceName) 
    {
        this.serviceName = serviceName;
    }

    @NotBlank(message = "服务名称不能为空")
    @Size(max = 100, message = "服务名称长度不能超过100个字符")
    public String getServiceName() 
    {
        return serviceName;
    }

    public void setRequiredScore(Integer requiredScore) 
    {
        this.requiredScore = requiredScore;
    }

    @NotNull(message = "所需信用分不能为空")
    public Integer getRequiredScore() 
    {
        return requiredScore;
    }

    public void setServiceDesc(String serviceDesc) 
    {
        this.serviceDesc = serviceDesc;
    }

    public String getServiceDesc() 
    {
        return serviceDesc;
    }

    public void setGuideImages(String guideImages) 
    {
        this.guideImages = guideImages;
    }

    public String getGuideImages() 
    {
        return guideImages;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("configId", getConfigId())
            .append("serviceCode", getServiceCode())
            .append("serviceName", getServiceName())
            .append("requiredScore", getRequiredScore())
            .append("serviceDesc", getServiceDesc())
            .append("guideImages", getGuideImages())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
} 